package cn.com.flower.admin.content.dao.persist.repository.impl;

import cn.com.flower.admin.content.dao.persist.mapper.ArticleDetailMapper;
import cn.com.flower.admin.content.dao.persist.repository.IArticleDetailRepository;
import cn.com.flower.admin.content.pojo.entity.ArticleDetail;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
@Slf4j
@Repository
public class ArticleDetailRepositoryImpl implements IArticleDetailRepository {
    @Autowired
    private ArticleDetailMapper articleDetailMapper;
    @Override
    public int insert(ArticleDetail articleDetail) {
        log.debug("开始执行【新增文章详情】的数据访问，参数：{}",articleDetail);
        return articleDetailMapper.insert(articleDetail);
    }
}
